-- GENERATED SPELL FOR [Devlin Agamand] --


function spell0_1657(pUnit, Event) --@Head Crack,n/a--
pUnit:FullCastSpellOnTarget(3148,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1657', 20305, 1)
end

function Sorts_1657(pUnit, Event)
local choix_sorts_1657 = math.random(0, 0)
if choix_sorts_1657 == 0 then
pUnit:RegisterEvent('spell0_1657', 1, 1)
end
end

function mob1657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1657', math.random(1500, 3000), 1)
end

function mob1657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1657, 1, 'mob1657_Action')
RegisterUnitEvent(1657, 2, 'mob1657_Leave')
RegisterUnitEvent(1657, 3, 'mob1657_Kill')
RegisterUnitEvent(1657, 4, 'mob1657_Die')
